//引入模板
const express=require('express');
//引入连接池模板
const pool=require('../pool.js');
//创建路由器对象
const u=express.Router();
//1.宠物店医疗团队查询
u.get("/pet_team",(req,res) => {
	var  sql = "select * from pet_team";
	pool.query(sql,[],(err,result) => {
		if(err) throw err;
		res.send({ message: 'ok', code: 200 ,result});
	});
});
//2.关于页面介绍文章查询
u.get("/about_introduce",(req,res) => {
	var  sql = "select * from about_introduce";
	pool.query(sql,[],(err,result) => {
		if(err) throw err;
		res.send({ message: 'ok', code: 200 ,result});
	});
});
//导出路由器对象
module.exports=u;